﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MyHistory.aspx.vb" Inherits="TeachersWorkSheets.MyHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style5
    {
        width: 100%;
    }
    .style6
    {
        width: 430px;
    }
    .style7
    {
        font-family: "Segoe UI";
        font-weight: bold;
        font-size: large;
        color: #006699;
    }
    .style9
    {
        width: 37px;
    }
    .style10
    {
        font-family: "Segoe UI";
        font-weight: bold;
        font-size: large;
        color: #0E738C;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
<table class="style5">
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" class="style6">
        <br />
        </td>
        <td align="center">
            &nbsp;</td>
        <td align="center">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataSourceID="SqlDataSource4" ForeColor="#333333" 
                GridLines="None" Width="586px">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="LastLoginDate" HeaderText="LastLoginDate" 
                        SortExpression="LastLoginDate">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:BoundField>
                    <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" 
                        SortExpression="LastActivityDate">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:BoundField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
                SelectCommand="SELECT aspnet_Membership.LastLoginDate, aspnet_Users.LastActivityDate FROM (aspnet_Membership INNER JOIN aspnet_Users ON aspnet_Membership.UserId = aspnet_Users.UserId) WHERE (aspnet_Users.UserName = ?)">
                <SelectParameters>
                    <asp:SessionParameter Name="?" SessionField="username" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3" class="style7">
            My Uploaded Sheets</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataSourceID="SqlDataSource5" ForeColor="#333333" 
                GridLines="None" Width="580px">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="ShtName" HeaderText="ShtName" 
                        SortExpression="ShtName">
                    </asp:BoundField>
                    <asp:BoundField DataField="ShtRegDate" HeaderText="ShtRegDate" 
                        SortExpression="ShtRegDate">
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
                ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
                
                SelectCommand="SELECT ShtName, ShtRegDate FROM ActivitySheet WHERE (ShtCreator = ?)">
                <SelectParameters>
                    <asp:SessionParameter Name="?" SessionField="username" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            <span class="style7">My Likes</span><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
            GridLines="None" Width="591px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="ShtName" HeaderText="ShtName" 
                    SortExpression="ShtName" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td colspan="3">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
            SelectCommand="SELECT ActivitySheet.ShtName FROM (usersheetLiking INNER JOIN ActivitySheet ON usersheetLiking.sheetid = ActivitySheet.ID) WHERE (usersheetLiking.Liker = ?)">
            <SelectParameters>
                <asp:SessionParameter Name="?" SessionField="username" />
            </SelectParameters>
        </asp:SqlDataSource>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            <span class="style10">My Comments</span><asp:GridView ID="GridView3" 
                runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource3" ForeColor="#333333" 
            GridLines="None" Width="594px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="ShtName" HeaderText="ShtName" 
                    SortExpression="ShtName" >
                </asp:BoundField>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" >
                </asp:BoundField>
                <asp:BoundField DataField="CommentBody" HeaderText="CommentBody" 
                    SortExpression="CommentBody" >
                </asp:BoundField>
                <asp:BoundField DataField="RegDate" HeaderText="RegDate" 
                    SortExpression="RegDate" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style9">
            &nbsp;</td>
        <td align="center" colspan="3">
            <span class="style10">My Rating</span><br />
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" 
            GridLines="None" Width="593px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="ShtName" HeaderText="ShtName" 
                    SortExpression="ShtName" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Rating" HeaderText="Rating" 
                    SortExpression="Rating" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
            <br />
        </td>
        <td>
            &nbsp;</td>
    </tr>
</table>
    <p>
        &nbsp;</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
            SelectCommand="SELECT ActivitySheet.ShtName, UserSheetRating.Rating FROM (ActivitySheet INNER JOIN UserSheetRating ON ActivitySheet.ID = UserSheetRating.SheetID) WHERE (UserSheetRating.Rater = ?)">
            <SelectParameters>
                <asp:SessionParameter Name="?" SessionField="username" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT ActivitySheet.ShtName, Comments.Title, Comments.CommentBody, Comments.RegDate FROM (ActivitySheet INNER JOIN Comments ON ActivitySheet.ID = Comments.Sheet_fkID) WHERE (Comments.Author = ?)">
            <SelectParameters>
                <asp:SessionParameter Name="?" SessionField="username" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
</asp:Content>
